package com.sfac.modules.test.service.serviceimpl;

import com.sfac.modules.test.mapper.CountryMapper;
import com.sfac.modules.test.pojo.Country;
import com.sfac.modules.test.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CountryServiceImpl implements CountryService {
    @Autowired
    private CountryMapper countryMapper;

    /**
     * 根据城市id查询城市
     * @param countryId
     * @return
     */
    @Override
    public Country selectCountryById(int countryId) {
        return countryMapper.selectCountry(countryId);
    }
}
